#include "vtable.h"

vTable::vTable(QWidget *parent):Table(parent)
{
    setShowGrid(false);
    setSelectionBehavior(QAbstractItemView::SelectRows);
    setSelectionMode(QAbstractItemView::SingleSelection);
    verticalHeader()->setVisible(false);
    horizontalHeader()->setHighlightSections(false);
    horizontalHeader()->setStretchLastSection(true);
    horizontalHeader()->setCascadingSectionResizes(true);
    setEditTriggers(QAbstractItemView::NoEditTriggers);
}

void vTable::set_Icon(const int &row, const int &col, const QIcon &icon)
{
    setCell(row,col,"",icon);
}
